package com.teamclub.util.errors;

/**
 * Created by ilkkzm on 17-4-27.
 */
public class ErrorCode {
    public Integer status;
    public String message;
    public ErrorCode(Integer status, String message) {
        this.status = status;
        this.message = message;
    }
    public static ErrorCode ref(String message) {
        return new ErrorCode(555, message);
    }

    public static ErrorCode apply(Integer status, String message) {
        return new ErrorCode(status, message);
    }

    public static ErrorCode BIZ_FAILURE = new ErrorCode(560, "业务失败");

    public static ErrorCode ENTITY_NOT_FOUND = new ErrorCode(611, "实体不存在");
    public static ErrorCode ENTITY_NOT_PERMIT_MODIFY = new ErrorCode(612, "账户不能被修改");
    public static ErrorCode ID_NOT_FOUND = new ErrorCode(612, "id未传递");

}
